package com.jingtai.common.webfacade;


import com.jingtai.common.webfacade.error.CommonException;
import com.jingtai.common.webfacade.error.ErrorEnum;
import lombok.Data;

import java.util.List;

/**
 * Description:
 * Create DateTime: 2020/5/26 16:52
 *
 * @author shitouren
 */
@Data
public class ListIdBO extends BaseBO{
    private List<Long> ids;

    @Override
    public void validate() {
        super.validate();
        if (ids == null || ids.size() == 0) {
            throw new CommonException(ErrorEnum.REQUIRED_PARAM_EMPTY);
        }
    }
}
